package com.clear.builder;

/**
 * 抽象创建者（Abstract Builder）类
 */
public abstract class HtmlDocumentBuilder {
    protected HtmlDocument document;

    // 将构建流程写好：即创建产品中需要使用的方法全部定义好
    public abstract void buildHeader();
    public abstract void buildBody();
    public abstract void buildFooter();

    public HtmlDocument getDocument() {
        return document;
    }

    public void createNewHtmlDocument() {
        document = new HtmlDocument();
    }
}
